import request from '../utils/request'

/**
 * 获取验证码接口
 */

export const getCodeApi = data => {
  return request({
    url: '/get/code',
    method: 'POST',
    data
  })
}

/**
 * 注册账号接口
 */
export const registerApi = data => {
  return request({
    url: '/user/authentication',
    method: 'POST',
    data
  })
}

/**
 * 登录接口
 */
export const loginApi = data => {
  return request({
    url: '/login',
    method: 'POST',
    data
  })
}
